package com.lahuan.cfg;

import org.apache.dubbo.config.ProtocolConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CustomConfig {

    @Bean("custom")
    public ProtocolConfig custom(){
        ProtocolConfig pc = new ProtocolConfig();
        pc.setName("custom");
        return pc;
    }
}
